/*
 * Copyright 2015-2016 Imply Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

%input-cont {
  background: $white;
  border: 1px solid $border-light;
  border-radius: $corner;
  cursor: pointer;
  box-shadow: 0 1px 1px 0 hsla(0, 0, 0, 0.1);

  &:hover {
    border-color: $border-medium;
  }
}

%input-selected {
  box-shadow: inset 0 1px 1px 0 hsla(0, 0, 0, 0.1);
  background: $background-light;
}

%input-cont-inset {
  background: $white;
  border: 1px solid $border-light;
  border-radius: $corner;
  box-shadow: inset 0 1px 1px 0 hsla(0, 0, 0, 0.1);
}

%input-top-label {
  text-transform: uppercase;
  font-size: 12px;
  color: $text-lighterish;
  margin-bottom: 5px;
}

%default-input {
  border: 1px solid #d4d4d4;
  border-radius: $corner;
  box-shadow: inset 0 1px 1px rgba($black, 0.13);
  padding-left: 6px;
  padding-right: 6px;
  width: 100%;
  height: $control-height;

  &:hover {
    border-color: #b8b8b8;
  }

  &:focus {
    border-color: $brand;
  }

  &.error {
    border-color: $danger;
  }
}
